<template>
  <el-table :data="data">
    <table-column v-for="(value, key) in model" :key="key" :model="value"></table-column>
  </el-table>
</template>

<script>
import TableColumn from './table-column'
export default {
  name: 'multi-table',
  props: {
    data: {
      type: Array
    },
    model: {
      type: Object
    }
  },
  components: {
    TableColumn
  }
}
</script>
<style>
</style>
